* fileio.c (report_file_errno): Fix errno reporting bug.
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 16 Jul 2013 16:39:42 +0000 (09:39 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 16 Jul 2013 16:39:42 +0000 (09:39 -0700)
commitc2f2e540c9b2352011339d2f666c3b3ac577410f
tree430d93137e90f3917ebfec0940cd4b680a576b1b
parentcc74f594ac7e6b28434568dab1795fbb19ead070
* fileio.c (report_file_errno): Fix errno reporting bug.

If the file name is neither null nor a pair, package it up as a
singleton list.  All callers changed, both to this function and to
report_file_error.  This fixes a bug where the memory allocator
invoked by list1 set errno so that the immediately following
report_file_error reported the wrong errno value.
12 files changed:
src/ChangeLog
src/callproc.c
src/dired.c
src/dispnew.c
src/doc.c
src/fileio.c
src/gfilenotify.c
src/keyboard.c
src/print.c
src/process.c
src/unexaix.c
src/unexcoff.c